home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmTextSetSource.z
/
XmTextSetSource
Wrap
Text File
|
1998-10-30
|
4KB
|
133 lines
XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee - A Text function that sets the source of
the widget
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/Text.h>
vvvvooooiiiidddd XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee(
WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
XXXXmmmmTTTTeeeexxxxttttSSSSoooouuuurrrrcccceeee ssssoooouuuurrrrcccceeee,
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ttttoooopppp____cccchhhhaaaarrrraaaacccctttteeeerrrr,
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ccccuuuurrrrssssoooorrrr____ppppoooossssiiiittttiiiioooonnnn);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee sets the source of the Text widget. Text
widgets can share sources of text so that editing in one
widget is reflected in another. This function sets the
source of one widget so that it can share the source of
another widget.
Setting a new text source destroys the old text source if no
other Text widgets are using that source. To replace a text
source but keep it for later use, create an unmanaged Text
widget and set its source to the text source you want to
keep.
_w_i_d_g_e_t Specifies the Text widget ID.
_s_o_u_r_c_e Specifies the source with which the widget
displays text. This can be a value returned by the
XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSoooouuuurrrrcccceeee(3) function. If no source is
specified, the widget creates a default string
source.
_t_o_p__c_h_a_r_a_c_t_e_r
Specifies the position in the text to display at
the top of the widget. This is an integer number
of characters from the beginning of the text
buffer. The first character position is 0 (zero).
_c_u_r_s_o_r__p_o_s_i_t_i_o_n
Specifies the position in the text at which the
insert cursor is located. This is an integer
number of characters from the beginning of the
text buffer. The first character position is 0
(zero).
For a complete definition of Text and its associated
resources, see XXXXmmmmTTTTeeeexxxxtttt(3).
Page 1 (printed 10/24/98)
XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmTTTTeeeexxxxtttt(3).
Page 2 (printed 10/24/98)